import { getRefreshToken } from '../utils/auth';
import request from '../utils/request';

// 刷新访问令牌
export function refreshToken() {
  return request({
    url: '' + getRefreshToken(),
    method: 'post'
  });
}
// 登录
export function login(data: any) {
  return request({
    url: '',
    method: 'POST',
    data
  });
}

// 获取用户权限信息
export function getInfo() {
  return request({
    url: '',
    method: 'get'
  });
}
//修改用户信息

export function editInfo(data: any) {
  return request({
    url: '',
    method: 'put',
    data
  });
}
export function logout(token: any) {
  return request({
    url: '',
    method: 'post'
  });
}
